/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: PekingDuck
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2022/2/11 11:17
 * @version: 1.0
 */
public class PekingDuck extends Duck{

    public PekingDuck() {
        flyBehavior = new BadFlyBehavior();
    }

    @Override
    public void display() {
        System.out.println("~~北京鸭~~");
    }
}
